package com.quanyan.financialSystem.web.place;


import com.quanyan.api.APIResponse;
import com.quanyan.financialSystem.entity.vo.place.resp.ProfitLossInfoVos;
import com.quanyan.financialSystem.service.place.ProfitLossReportFormService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author chun-tu
 * @email 2539466234@qq.com
 * @date 2016/10/15.
 */
@RestController
@RequestMapping(value = "/admin/api/financial/place")
public class OnlineOrderReconciliationController {
    private Logger log = LoggerFactory.getLogger(OnlineOrderReconciliationController.class);
    @Autowired
    private ProfitLossReportFormService profitLossReportFormService;
    @RequestMapping(value = "/reconciliation", method = RequestMethod.POST)
    public APIResponse<ProfitLossInfoVos> profitLossStatement(@RequestBody Map<String, Object> paramMap) {
        return profitLossReportFormService.getProfitLossReportForm(paramMap);
    }

}
